package net.lzzy.practices.repositories;

import net.lzzy.practices.entities.Question;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

/**
 * @author liaodcc on 2022/6/1 15:31.
 * UUID 是实体类表
 */
public interface QuestionRepository extends JpaRepository<Question, UUID> {
    List<Question> findQuestionsByChapterIdOrderByOrdinal(UUID chapterId);
    Integer countAllByChapterId(UUID chapterId);
}
